package cn.com.server.service.impl;

import cn.com.server.dao.WarnDao;
import cn.com.server.service.WarnService;
import cn.com.server.extend.model.WarnModel;
import cn.com.server.extend.view.WarnView;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;

/**
 * <p>
 * 系统信息表 服务实现类
 * </p>
 *
 * @author qing
 * @since 2017-11-20
 */
@Service
public class WarnServiceImp implements WarnService {
	
	@Autowired
	private WarnDao dao;

	@Override
	public Page<WarnView> selectWarnViewList(WarnModel model) {
		PageHelper.startPage(model.getPage(), model.getLimit());
		Page<WarnView> pageData = dao.selectWarnViewList(model);
		return pageData;
	}
}
